<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SEOCMS网站信息管理系统</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
</head>

<body id="page">

<h2 class="tag">当前位置: 栏目管理 &gt; 添加新闻模块</h2>
<div class="box">
  <div class="page_menu"><a href="__URL__/index">栏目列表</a></div>
  <div class="infobox">
    <form name="add" method="post" action="__URL__/listadd" onSubmit="return checkadd()">
      <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
        <tr>
          <td align="center" class="tdbg">上级分类：</td>
          <td class="tdbg">
         	<select name="pid" >
		   {if $pid==0}
			<option value="0" selected="selected">无（作为一级栏目）</option>
		   {/if}
           {loop $cat $key $vo}
				 {if $vo['cid']==$pid}
					<option value="{$vo['cid']}" selected="selected">{$vo['cname']}</option>
				 {else}  
					 <option value="{$vo['cid']}">{$vo['cname']}</option> 
				 {/if}
            {/loop} 
		  </select>	
         </td>
        <tr>
          <td width="120" align="center" class="tdbg">栏目名称：<font color="#FF0000">*</font></td>
          <td class="tdbg"><input name="title" type="text" class="input"></td>
        </tr>
        </tr>
       <tr class="tdbg" id="flag2">
          <td align="center">关键词：</td>
          <td><input name="keyword" type="text" class="input"></td>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">栏目描述：</td>
          <td><textarea name="description" style="width:260px;height:80px;" class="inputs"></textarea></td>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">前台显示：</td>
          <td><select name="show">
          	<option value="0">显示</option>
          	<option value="1">隐藏</option>
          </select></td>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">列表模版：<font color="#FF0000">*</font></td>
          <td><input name="tpl_category" type='text' id="tpl_category"  class="input"/>
           <select id="select" onchange="document.getElementById('tpl_category').value=this.value;">
              <option value="选择页面模板">选择列表模板</option>
              <?php while ($file=iconv("gbk","utf-8",readdir($tpl_dir))){ ?>
              <?php if ($file != "." && $file != "..") {  ?>
              <option value="<?php echo $file; ?>"><?php echo $file; ?></option>
              <?php }} ?>
            </select></td>
        </tr>
        <tr class="tdbg" id="flag2">
          <td align="center">内容模版：<font color="#FF0000">*</font></td>
          <td><input name="tpl_content" type='text' id="tpl_content"  class="input"/>
           <select id="select" onchange="document.getElementById('tpl_content').value=this.value;">
              <option value="选择页面模板">选择内容模板</option>
              <?php while ($file=iconv("gbk","utf-8",readdir($tpl_dir2))){ ?>
              <?php if ($file != "." && $file != "..") {  ?>
              <option value="<?php echo $file; ?>"><?php echo $file; ?></option>
              <?php }} ?>
            </select></td>
        </tr>
        <tr class="tdbg">
          <td width="100">&nbsp;</td>
          <td>
           <input name="do" type="hidden" value="yes" />
          <input type="submit"  name="update" class="button" value="添加列表">
            <input type="button" onClick="history.go(-1)" class="button" value="放弃返回"></td>
        </tr>
      </table>
    </form>
  </div>
 </div>
</body>
</html>